﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;

namespace SharpMix
{
    class Program
    {
        static void Main(string[] args)
        {
            SharpMixLib.Word[] cmd = new SharpMixLib.Word[1];
            cmd.Initialize();
            cmd[0] = new SharpMixLib.Word();
            cmd[0].Bytes[5].Value = (int)SharpMixLib.OpCodes.SUB;
            cmd[0].Bytes[4].Value = 5;
            cmd[0].Bytes[2].Value = 0;

            SharpMixLib.MemoryManager.Instance[0].Bytes[5].Value = 10;

            SharpMixLib.Cpu.Instance.ParseWordCommandList(cmd);
            SharpMixLib.Cpu.Instance.ExecuteCommand();

            SharpMixLib.RegisterManager.Instance.rA.PrintOut();
            System.Console.ReadKey();
        }
    }
}
